package org.example.boot.mybatis.pius.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
@Data
@TableName("stu1")
public class Stu implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String sex;
    private Integer age;
    private String tel;
    private String scores;
    private String school;
    // 设置局部逻辑删除方式
     @TableLogic(delval = "0", value = "1")
    private Integer zt;
}
